﻿using Ducu.BLL.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.BLL.NHMap
{
    class UserMap : EntityMap<User>
    {
        public UserMap()
        {
            Component(m => m.Profile);
            HasMany(m => m.Messages).KeyColumn("SendTo_id").Inverse();
            References(m => m.RegisterInfo);
            HasManyToMany(m => m.Supervised).Inverse();
        }
    }
}
